package Page.PaperPage;

import Page.Page;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;

import java.io.IOException;
import java.util.Objects;

public class PaperPage implements Page {

    public static Scene getScene(){

        Parent root = null;
        try{

            root = FXMLLoader.load(Objects.requireNonNull(PaperPage.class.getResource("PaperPage.fxml")));
        }catch (IOException e){
            System.err.println("Error loading PaperPage.fxml");
        }

        if (root != null) {
            return new Scene(root);
        }else{
            return new Scene(new Label("出现未知错误"));
        }
    }
}
